<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */

function getUsernameFromDB($id){
	$query = $GLOBALS['db']->query("SELECT display_name FROM {prefix}users WHERE id = '".intval($id)."'");
	$data = $query->fetch_array();

	return $data[0];
}

?>